home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / eric.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-01-04  |  7KB  |  119 lines

  1. @echo off
  2. echo off
  3. cls
  4. IF NOT EXIST install.bat GOTO :wrongdrive
  5. IF "%1" == "c:" GOTO :install
  6. IF "%1" == "C:" GOTO :install
  7. IF "%1" == "d:" GOTO :install
  8. IF "%1" == "D:" GOTO :install
  9. IF "%1" == "e:" GOTO :install
  10. IF "%1" == "E:" GOTO :install
  11. IF "%1" == "f:" GOTO :install
  12. IF "%1" == "F:" GOTO :install
  13. IF "%1" == "g:" GOTO :install
  14. IF "%1" == "G:" GOTO :install
  15. IF "%1" == "h:" GOTO :install
  16. IF "%1" == "H:" GOTO :install
  17. goto :badparam
  18. :install
  19. echo ╔════════════════════════════════════════════════════════════════════════╗
  20. echo ║                                                                        ║
  21. echo ║          Installation for the Demo of ERIC THE UNREADY                 ║
  22. echo ║                                                                        ║
  23. echo ║                                                                        ║
  24. echo ║ This demo requires approximately 1.2 MBytes free disk space            ║
  25. echo ║                                                                        ║
  26. echo ║ Press any key to create the directory ERICDEMO                         ║
  27. echo ║                                                                        ║
  28. echo ║ Press CTRL-BREAK to abort the installation process                     ║
  29. echo ║                                                                        ║
  30. echo ╚════════════════════════════════════════════════════════════════════════╝
  31. pause
  32. cls
  33. echo Making the directory ERICDEMO
  34. md %1ERICDEMO
  35. echo Changing the directory on %1 to ERICDEMO
  36. cd %1ERICDEMO
  37. echo Copying files...
  38. copy *.* %1    
  39. %1
  40. IF EXIST eric_312.pic GOTO :ok
  41. cls
  42. echo ╔════════════════════════════════════════════════════════════════════════╗
  43. echo ║                                                                        ║
  44. echo ║          Installation for the Demo of ERIC THE UNREADY                 ║
  45. echo ║                                                                        ║
  46. echo ║                      *** NOT SUCCESSFUL ***                            ║
  47. echo ║                                                                        ║
  48. echo ║ Did you have enough disk space?                                        ║
  49. echo ║                                                                        ║
  50. echo ║ With DOS 5.0 type DIR to determine if you have enough free disk space, ║
  51. echo ║ otherwise, type CHKDSK.                                                ║
  52. echo ║                                                                        ║
  53. echo ║ This demo requires approximately 1.2 MBytes free disk space.           ║
  54. echo ║                                                                        ║
  55. echo ║ NOTE: You can run the demo from the floppy by typing                   ║
  56. echo ║           B:        (or A: if your 3½ drive is A:)                     ║
  57. echo ║       Then type:                                                       ║
  58. echo ║           DEMO                                                         ║
  59. echo ║       or, to run the demo with Roland MT-32 compatible sound, type:    ║
  60. echo ║           DEMO MT32                                                    ║
  61. echo ║                                                                        ║
  62. echo ╚════════════════════════════════════════════════════════════════════════╝
  63. goto :exit
  64. :ok
  65. erase install.bat
  66. cls
  67. echo ╔════════════════════════════════════════════════════════════════════════╗
  68. echo ║                                                                        ║
  69. echo ║          Installation for the Demo of ERIC THE UNREADY                 ║
  70. echo ║                                                                        ║
  71. echo ║                        *** COMPLETE ***                                ║
  72. :ready
  73. echo ║                                                                        ║
  74. echo ║ To run the demo type:                                                  ║
  75. echo ║     DEMO                                                               ║
  76. echo ║                                                                        ║
  77. echo ║ To run the demo with Roland MT-32 compatible sound type:               ║
  78. echo ║     DEMO MT32                                                          ║
  79. echo ║                                                                        ║
  80. echo ╚════════════════════════════════════════════════════════════════════════╝
  81. goto :exit
  82. :wrongdrive
  83. IF NOT EXIST demo.exe GOTO :notready
  84. IF NOT EXIST eric_312.pic GOTO :notready
  85. echo ╔════════════════════════════════════════════════════════════════════════╗
  86. echo ║                                                                        ║
  87. echo ║          Installation for the Demo of ERIC THE UNREADY                 ║
  88. echo ║                                                                        ║
  89. echo ║ The installation seems to have been completed previously...            ║
  90. goto :ready
  91. :notready
  92. echo ╔════════════════════════════════════════════════════════════════════════╗
  93. echo ║                                                                        ║
  94. echo ║          Installation for the Demo of ERIC THE UNREADY                 ║
  95. echo ║                                                                        ║
  96. echo ║ Please run the INSTALL from the floppy.                                ║
  97. echo ║                                                                        ║
  98. echo ║ This installation will create the directory ERICDEMO on your hard      ║
  99. echo ║ drive, and then copy the files from the floppy to the new directory.   ║
  100. goto :how
  101. :badparam
  102. echo ╔════════════════════════════════════════════════════════════════════════╗
  103. echo ║                                                                        ║
  104. echo ║          Installation for the Demo of ERIC THE UNREADY                 ║
  105. echo ║                                                                        ║
  106. echo ║ Please specify which drive you wish to install to.                     ║
  107. :how
  108. echo ║                                                                        ║
  109. echo ║ For example, to install the demo to your C: drive from your B: drive   ║
  110. echo ║     C:                                                                 ║
  111. echo ║     CD \                                                               ║
  112. echo ║     B:                                                                 ║
  113. echo ║     INSTALL C:                                                         ║
  114. echo ║                                                                        ║
  115. echo ║ This demo requires approximately 1.2 MBytes free disk space            ║
  116. echo ║                                                                        ║
  117. echo ╚════════════════════════════════════════════════════════════════════════╝
  118. :exit
  119.